package com.jl15988.mybatispluskit.join.config;

import com.jl15988.mybatispluskit.join.injector.JoinSqlInjector;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 关联查询自动配置类
 * 用于自动配置关联查询相关组件
 * 
 * @author Jalon
 * @since 2025/1/1
 */
@Configuration
public class JoinConfiguration {
    
    /**
     * 注册关联查询 SQL 注入器
     * 
     * @return SQL 注入器实例
     */
    @Bean
    @ConditionalOnMissingBean
    public JoinSqlInjector joinSqlInjector() {
        return new JoinSqlInjector();
    }
} 